package com.bean;

/**
 * 作者 : Administrator
 * 创建时间 :  2017/5/31 0031.
 * 备注 :
 */

public class MsAreaCode {
    private int id;
    private String area_code;         //地区码
    private String area_name;        //区域名称
    private String area_parent_id;  //上级区域编码
    private int area_type;         //区域类型：1、国家；2、省；3、市；4、区

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getArea_code() {
        return area_code;
    }

    public void setArea_code(String area_code) {
        this.area_code = area_code;
    }

    public String getArea_name() {
        return area_name;
    }

    public void setArea_name(String area_name) {
        this.area_name = area_name;
    }

    public String getArea_parent_id() {
        return area_parent_id;
    }

    public void setArea_parent_id(String area_parent_id) {
        this.area_parent_id = area_parent_id;
    }

    public int getArea_type() {
        return area_type;
    }

    public void setArea_type(int area_type) {
        this.area_type = area_type;
    }

    public boolean typeProvince() {
        return area_type == 2;
    }

    public boolean typeCity() {
        return area_type == 3;
    }

    public boolean typeArea() {
        return area_type == 4;
    }
}
